import request from './request';

// 用户登录
const login = (data) => {
  return request.post('user/login', data);
};

// 微信登录
const wechatLogin = (data) => {
  return request.post('user/wechat-login', data);
};

// 获取短信验证码
const getVerifyCode = (mobile) => {
  return request.post('user/verify-code', { mobile });
};

// 获取用户信息
const getUserInfo = () => {
  return request.get('user/info');
};

export default {
  login,
  wechatLogin,
  getVerifyCode,
  getUserInfo
}; 